package com.xebia.pomodoro.event
{
	import flash.events.Event;

	public class P2PConnectionEvent extends Event
	{
		public static const CONNECTION_SUCCESS:String = "connectionSuccess";

		public static const NEIGHBOR_CONNECT:String = "neighborConnect";

		public static const NEIGHBOR_DISCONNECT:String = "neighborDisconnect";

		public static const GROUP_POST_RECIEVED:String = "groupPostRecieved";

		public static const INDIVIDUAL_MESSAGE_RECIEVED:String = "individualMessageRecieved";

		public var data:Object;

		public function P2PConnectionEvent(type:String, data:Object = null, bubbles:Boolean = false, cancelable:Boolean = false)
		{
			super(type, bubbles, cancelable);
			this.data = data;
		}
	}
}
